<template>
  <div>
    <!-- 搜索框部分 -->
    <form action="/" style="margin-top: 10px;">
      <van-search v-model="searchvalue" show-action placeholder="输入搜索词..." shape="round" @search="onSearch"
        @cancel="onCancel" />
    </form>
    <!-- 搜索(历史)内容列表占位符 -->
    <router-view></router-view>
  </div>
</template>

<script>
import { Toast } from 'vant';
export default {
  data() {
    return {
      searchvalue: ''
    }
  },
  methods: {
    onSearch(val) {
      this.$router.push('/home/sou/soulist')
    },
    onCancel() {
      this.$router.push('/home/index')
    },
  },
}
</script>

<style lang="scss" scoped>

</style>